#pragma once
#include <iostream>
#include <string>

class Teacher
{
public:
    int id;
    std::string name;
    std::string id_card;
    std::string address;
    std::string phone;
    std::string department;
    int salary;
    std::string entry_date;
    std::string major;
    std::string title;

    void input()
    {
        std::cout << "姓名: ";
        std::getline(std::cin, name);
        std::cout << "身份证号: ";
        std::getline(std::cin, id_card);
        std::cout << "地址: ";
        std::getline(std::cin, address);
        std::cout << "电话: ";
        std::getline(std::cin, phone);
        std::cout << "部门: ";
        std::getline(std::cin, department);
        std::cout << "工资: ";
        std::cin >> salary;
        std::cin.ignore();
        std::cout << "参加工作时间(YYYY-MM-DD): ";
        std::getline(std::cin, entry_date);
        std::cout << "专业: ";
        std::getline(std::cin, major);
        std::cout << "职务: ";
        std::getline(std::cin, title);
    }
    void display() const
    {
        std::cout << "[教师信息] " << name << ", 工资: " << salary << ", 部门: " << department << std::endl;
    }
};
